<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/1/5
  Time: 13:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="../css/individual.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="script/jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#b1").click(function () {
                // 新地址:
                var strhref = 'viewPerIn.jsp?id=1&acNum=<%=request.getParameter("acNum")%>';
                //获取jquery中的src
                $("#if").attr('src',strhref)
                $("#b1").css("background-color","#EE82EE")
                $("#b2").css("background-color","coral")
                $("#b3").css("background-color","coral")
                $("#b4").css("background-color","coral")
                $("#b5").css("background-color","coral")
            })
            $("#b2").click(function () {
                // 新地址:
                var strhref = 'viewPerIn.jsp?id=2&acNum=<%=request.getParameter("acNum")%>';
                //获取jquery中的src
                $("#if").attr('src',strhref)
                $("#b1").css("background-color","coral")
                $("#b2").css("background-color","#EE82EE")
                $("#b3").css("background-color","coral")
                $("#b4").css("background-color","coral")
                $("#b5").css("background-color","coral")
            })
            $("#b3").click(function () {
                // 新地址:
                var strhref = 'viewPerIn.jsp?id=3&acNum=<%=request.getParameter("acNum")%>';
                //获取jquery中的src
                $("#if").attr('src',strhref)
                $("#b1").css("background-color","coral")
                $("#b2").css("background-color","coral")
                $("#b3").css("background-color","#EE82EE")
                $("#b4").css("background-color","coral")
                $("#b5").css("background-color","coral")
            })
            $("#b4").click(function () {
                // 新地址:
                var strhref = 'viewPerIn.jsp?id=4&acNum=<%=request.getParameter("acNum")%>';
                //获取jquery中的src
                $("#if").attr('src',strhref)
                $("#b1").css("background-color","coral")
                $("#b2").css("background-color","coral")
                $("#b3").css("background-color","coral")
                $("#b4").css("background-color","#EE82EE")
                $("#b5").css("background-color","coral")
            })
            $("#b5").click(function () {
                $("#b1").css("background-color","coral")
                $("#b2").css("background-color","coral")
                $("#b3").css("background-color","coral")
                $("#b4").css("background-color","coral")
                $("#b5").css("background-color","#EE82EE")
                window.location.replace("../index.jsp");
            })
            $("#b6").click(function (){
                window.location.replace("../index.jsp?name=<%=request.getParameter("name")%>&acNum=<%=request.getParameter("acNum")%>");
            })
        })
    </script>
</head>
<body>
<div class="div1"><h1><%=request.getParameter("name")%>的个人中心</h1></div>
<div class="div2">
    <div class="div3">
        <div id="b1" class="div4"><br>查看个人信息</div>
        <hr>
        <div id="b2" class="div4"><br>修改个人信息</div>
        <hr>
        <div id="b3" class="div4"><br>修改密码</div>
        <hr>
        <div id="b4" class="div4"><br>注销</div>
        <hr>
        <div id="b6" class="div4"><br>返回</div>
        <hr>
        <div id="b5" class="div4"><br>退出</div>
        <hr>
    </div>
    <div class="div5">
        <iframe id="if" src="viewPerIn.jsp?id=1&acNum=<%=request.getParameter("acNum")%>" scrolling="no" frameborder="0">
        </iframe>
    </div>
</div>
</body>
</html>
